// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false

//axios 交互
import Qs from 'qs'
import axios from 'axios'
axios.defaults.withCredentials=false;
axios.defaults.headers['Content-Type'] = 'application/x-www-form-urlencoded'
//默认请求地址
axios.defaults.baseURL ='http://192.168.1.84:8001';
Vue.prototype.$http = axios;

//Vuex
import Vuex from 'vuex'
Vue.use(Vuex)
//vuex集成方法 
import store from  '@/store/store.js'


//路由加载
import router from '@/js/routers' 
import wxShare from '@/js/weixin'

//使用miti 看个人习惯
import Mint from 'mint-ui';
import 'mint-ui/lib/style.css'
Vue.use(Mint); 
//iscroll
import VueScroller from 'vue-scroller'
Vue.use(VueScroller)
 
/*//拖拽插件
import Grid from 'vue-js-grid'
Vue.use(Grid)
*/
//rem计算单位 
import '@/js/mobile.js'
//矢量图标
import '@/fonts/iconfont.css'
//公共样式
import '@/css/public.css'
//bese64 加密
import '@/js/bese64.js'
//公共JS
/*import { countdowm } from '@/js/public.js'*/



//微信sdk引入
import wx from 'weixin-js-sdk'
Vue.use(wx)

//全局添加公共组件
// 全局头部公用组件 
import haders from "@/components/other/haders"
import noData from '@/components/other/noData' 

Vue.component('haders', haders)
Vue.component('noData', noData) 
//去掉警告
Vue.config.silent = true

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: { App }
})
